import request from '@/utils/request'

export function list(token,data){
  return request({
    url: 'customer/user/get_select',
    method: 'post',
    params: {token},
    data
  })
}




// 添加用户(customer)
export function add(token,customerData){
  return request({
    url: 'customer/user/add',
    method: 'post',
    params: {token},
    data: customerData
  })
}

// 编辑用户(customer)
export function edit(token,customerData){

  console.log(customerData)
  return request({
    url: 'customer/user/edit',
    method: 'post',
    params: {token},
    data: customerData
  })
}

// 删除用户(customer)
export function del(token,customer_id) {
  return request({
    url: 'customer/user/delete',
    method: 'post',
    params: {token},
    data: {customer_id}
  })
}
